<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增病例家庭成员')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-CaseFamilyMembers-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">病例ID：</label>
                <div class="col-sm-8">
                    <inputname="caseid"  class="form-control" type="text"   readonly="readonly">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">成员关系：</label>
                <div class="col-sm-8">
                    <input name="relationship"  class="form-control" type="text"  required="required">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">姓名：</label>
                <div class="col-sm-8">
                    <input name="name"  class="form-control" type="text"  required="required">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">性别：</label>
                <div class="col-sm-8">
                    <input name="gender"  class="form-control" type="text"  required="required">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">身份证号：</label>
                <div class="col-sm-8">
                    <input name="cardId"  class="form-control" type="text"  required="required">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">联系电话：</label>
                <div class="col-sm-8">
                    <input name="tel"  class="form-control" type="text"  required="required">
                </div>
            </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/CaseFamilyMembers"
        $("#form-CaseFamilyMembers-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-CaseFamilyMembers-add').serialize());
            }
        }
    </script>
</body>
</html>